package com.wyt.dao;

import com.wyt.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(@Param("departmentId")Integer departmentId,@Param("departmentName")String departmentName,@Param("dstatus")Integer dstatus,@Param("departmentDisc")String departmentDisc);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> selectAll();

    int deleteBydepartmentId(@Param("departmentId") String departmentId);

    int updateByDept(Department department);

    List<Department> likeselect(@Param("departmentId") Integer departmentId, @Param("departmentName")String departmentName,@Param("departmentDisc") String departmentDisc);

    List<Department> findAllDept3();

    Integer selectBydepartmentId(@Param("departmentId") Integer departmentId);

    Integer selectrenshu(@Param("departmentId") String departmentId);
}